package com.ruoyi.app.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.app.mapper.AppOperationLogMapper;
import com.ruoyi.app.domain.AppOperationLog;
import com.ruoyi.app.service.IAppOperationLogService;
import com.ruoyi.common.core.text.Convert;

/**
 * 操作日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2019-12-12
 */
@Service
public class AppOperationLogServiceImpl implements IAppOperationLogService 
{
    @Autowired
    private AppOperationLogMapper appOperationLogMapper;

    /**
     * 查询操作日志
     * 
     * @param id 操作日志ID
     * @return 操作日志
     */
    @Override
    public AppOperationLog selectAppOperationLogById(Long id)
    {
        return appOperationLogMapper.selectAppOperationLogById(id);
    }

    /**
     * 查询操作日志列表
     * 
     * @param appOperationLog 操作日志
     * @return 操作日志
     */
    @Override
    public List<AppOperationLog> selectAppOperationLogList(AppOperationLog appOperationLog)
    {
        return appOperationLogMapper.selectAppOperationLogList(appOperationLog);
    }

    /**
     * 新增操作日志
     * 
     * @param appOperationLog 操作日志
     * @return 结果
     */
    @Override
    public int insertAppOperationLog(AppOperationLog appOperationLog)
    {
        return appOperationLogMapper.insertAppOperationLog(appOperationLog);
    }

    /**
     * 修改操作日志
     * 
     * @param appOperationLog 操作日志
     * @return 结果
     */
    @Override
    public int updateAppOperationLog(AppOperationLog appOperationLog)
    {
        return appOperationLogMapper.updateAppOperationLog(appOperationLog);
    }

    /**
     * 删除操作日志对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteAppOperationLogByIds(String ids)
    {
        return appOperationLogMapper.deleteAppOperationLogByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除操作日志信息
     * 
     * @param id 操作日志ID
     * @return 结果
     */
    @Override
    public int deleteAppOperationLogById(Long id)
    {
        return appOperationLogMapper.deleteAppOperationLogById(id);
    }
}
